package com.fate.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fate.system.entity.Approval;
import com.fate.system.service.IApprovalService;
import com.fate.system.mapper.ApprovalMapper;
import org.springframework.stereotype.Service;
import com.fate.framework.utils.SystemUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fate.system.dto.approval.ApprovalPageDTO;

/**
* @author 14256
* @description 针对表【gov_approval(审批申请表)】的数据库操作Service实现
* @createDate 2024-08-26 11:52:23
*/
@Service
public class ApprovalServiceImpl extends ServiceImpl<ApprovalMapper, Approval>
    implements IApprovalService{

    public Page<Approval> getPageList(ApprovalPageDTO pageDTO){
        Page<Approval> page = SystemUtil.buildPageFromDTO(pageDTO,Approval.class);
        return this.lambdaQuery().page(page);
    }
}




